home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / dev / cross / GBDK-2.0.lha / Install-GBDK-2.0 < prev    next >
Text File  |  1999-02-07  |  4KB  |  134 lines

  1. ; $VER: Install-GBDK 2.0.17 (07.02.99)
  2. ; © 1999 Lars Malmborg <glue@df.lth.se>
  3.  
  4. (procedure install-bin
  5.   (set dest-bin (tackon GBDKdir "bin"))
  6.   (if (not (exists dest-bin))
  7.     (makedir dest-bin))
  8.   (copyfiles
  9.         (prompt "Copying binaries.")
  10.         (help "All binaries should be installed.\n lcc      - the front-end.\n cpp      - the C pre-processor.\n rcc      - the C compiler.\n asGB     - the assembler.\n linkGB   - the linker.\n ILBMtoGB - the bitmap converter.\n maccer   - the macro expander for assembler files.")
  11.     (source "GBDK/bin/")
  12.     (dest dest-bin)
  13.         (pattern "#?")
  14.         (files)
  15.         (confirm)))
  16.  
  17. (procedure install-include
  18.   (set dest-include (tackon GBDKdir "include"))
  19.   (if (not (exists dest-include))
  20.     (makedir dest-include))
  21.   (copyfiles
  22.         (prompt "Copying includes.")
  23.         (help "All include files should be installed.")
  24.     (source "GBDK/include/")
  25.     (dest dest-include)
  26.         (pattern "#?")
  27.         (files)
  28.         (confirm)))
  29.  
  30. (procedure install-lib
  31.   (set dest-lib (tackon GBDKdir "lib"))
  32.   (if (not (exists dest-lib))
  33.     (makedir dest-lib))
  34.   (copyfiles
  35.         (prompt "Copying link libraries.")
  36.         (help "All libraries (not real libraries, but anyhow...) should be installed as well as global.h.\nThe sources are optional, but can be quite educational.")
  37.     (source "GBDK/lib/")
  38.     (dest dest-lib)
  39.         (pattern "#?")
  40.         (files)
  41.         (confirm)))
  42.  
  43. (procedure install-examples
  44.   (set dest-examples (tackon GBDKdir "examples"))
  45.   (if (not (exists dest-examples))
  46.     (makedir dest-examples))
  47.   (copyfiles
  48.         (prompt "Copying example files.")
  49.         (help "These are optional, but can be quite educational to take a look at.")
  50.     (source "GBDK/examples/")
  51.     (dest dest-examples)
  52.         (pattern "#?")
  53.         (files)
  54.         (confirm)))
  55.  
  56. (procedure install-doc
  57.   (set dest-doc (tackon GBDKdir "doc"))
  58.   (if (not (exists dest-doc))
  59.     (makedir dest-doc))
  60.   (copyfiles
  61.         (prompt "Copying documentation for libs, assembler and linker.")
  62.         (help "These are some of the documentation that is supplied with the original source distribution (http://www.aracnet.com/~pfelber/GBDK/bin/SDK-2.0.17.tar.gz).")
  63.     (source "GBDK/doc/")
  64.     (dest dest-doc)
  65.         (pattern "#?")
  66.         (files)
  67.         (confirm)))
  68.  
  69. (procedure install-html
  70.   (set dest-html (tackon GBDKdir "html"))
  71.   (if (not (exists dest-html))
  72.     (makedir dest-html))
  73.   (copyfiles
  74.         (prompt "Copying documentation for compiler. This is a mirror of the GBDK home page (http://www.aracnet.com/~pfelber/GBDK/index.html).")
  75.         (help "These are some of the documentation that is supplied with the original source distribution (http://www.aracnet.com/~pfelber/GBDK/bin/SDK-2.0.17.tar.gz).")
  76.     (source "GBDK/html/")
  77.     (dest dest-html)
  78.         (pattern "#?")
  79.         (files)
  80.         (confirm)))
  81.  
  82.  
  83. (message "Welcome to the GBDK-2.0 installation utility.\nIt will install everything you need to develop games for GameBoy on Amiga. You can run the programs either on the real thing (GameBoy, Super GameBoy, GameBoy Pocket or GameBoy Color) or with an emulator such as AmigaVGB (Aminet:misc/emu/AmigaVGB.lha).\n\nThis Amiga port is © 1999 by Lars Malmborg.\nOriginal UN*X version by Pascal Felber and Michael Hope.")
  84.  
  85. (set dir
  86.   (askdir
  87.     (prompt "Please select where you want to install GBDK. A drawer named 'GBDK' will be created in this directory")
  88.     (help "Choose where you want GBDK to be stored. All files will be copied to this location.")
  89.     (default "Work:") ) )
  90.  
  91. (complete 5)
  92.  
  93. (set GBDKdir (tackon dir "GBDK") )
  94. (if (not (exists GBDKdir) )
  95.   ( (makedir GBDKdir) ) )
  96.  
  97. (complete 10)
  98.  
  99. (set @default-dest GBDKdir)
  100.  
  101. (complete 20)
  102.  
  103. (install-bin)
  104.  
  105. (complete 40)
  106.  
  107. (install-include)
  108.  
  109. (complete 50)
  110.  
  111. (install-lib)
  112.  
  113. (complete 60)
  114.  
  115. (install-examples)
  116.  
  117. (complete 70)
  118.  
  119. (install-doc)
  120.  
  121. (complete 80)
  122.  
  123. (install-html)
  124.  
  125. (complete 90)
  126.  
  127. (startup "GBDK"
  128.     (prompt
  129.         "Some instructions need to be added to the \"S:User-startup\" so that your system will be properly configured to use GBDK.")
  130.     (help "The following will be added to the \"S:User-startup\" if you install to the default destination:\n\n;BEGIN GBDK\nAssign GBDK: Work:GBDK\nPath Work:GBDK/bin\n;END GBDK")
  131.     (command (cat (cat "Assign GBDK: " GBDKdir) "\n"))
  132.     (command (cat (cat "Path " dest-bin) "\n"))
  133. )
  134.